<div>
<h1>
<div class="wid186"><input type="text" value="search" /><a href="#"><img src="/images/ModSearchIcon.png" border="0" class="SerImg" /></a></div>
</h1>
<div class="clear"></div>
<ul class="ModuleMenu" id="list_active">
<li><a href="javascript:void(0);" onclick="change_activity(1);" class="active">My Activity</a> </li>
<li><a href="javascript:void(0);" onclick="change_activity(2);">Network Activity </a> </li>
<li><a href="javascript:void(0);" onclick="change_activity(3);">Notifications</a> </li>
</ul>
<input type="text" value="Share Something"  class="share"/>
<div class="ModuleHig">
<div id="topPagerId1" class="paginat"></div>
<div class="clear"></div>
<div id="listAlbums">
<tal:block tal:repeat="activity  getActivities/result">
<?php if($ctx->activity['content_type']=="triggers")
{
	$profile_pic="TrigIconB.png";
	$alt="Trigger";
	$title="Trigger";
}
else if($ctx->activity['content_type']=="expressions")
{
	$profile_pic="TrigIconB.png";
	$alt="Message";
	$title="Message";
}
else if($ctx->activity['content_type']=="album")
{
	$profile_pic="PhotoIconUser.png";
	$alt="Album";
	$title="Album";
}
else if($ctx->activity['content_type']=="photos")
{
	$profile_pic="PhotoDefImg.png";
	$alt="Photo";
	$title="Photo";
}
else if($ctx->activity['content_type']=="tasks")
{
	$profile_pic="TaskIcon.png";
	$alt="Task";
	$title="task";
}
else if($ctx->activity['content_type']=="journals")
{
	$profile_pic="EventDefIcon.png";
	$alt="Journal";
	$title="Journal";
}
else 
{
	$profile_pic="TrigIconB.png";
	$alt="Comment";
	$title="Comment";
}
?>
<div class="activity">
<div class="blkCont">
<p class="UserImg"><img src="/images/<?php echo $profile_pic; ?>" height="40px" width="40px" alt="<?php echo $alt; ?>" title="<?php echo $title;?>" /></p>	
<p class="Date"><?php echo ago(strtotime($ctx->activity['added_date']));?></p>
</div>
<div class="blkCont">
<div class="wid289">
<p class="Title"><a href="#"><?php echo $ctx->this->showActivityLink($ctx->activity['content_id'], $ctx->activity['content_type'],$ctx->activity['share_type']);?></a></p>
<p class="Desc"><?php echo "Added ".$alt; ?></p>
<div>
<span><a href="#" class="UserShare">Share</a></span>
<span><a href="#" class="UserComment">Comment</a></span>
</div>
</div>
</div>
<div class="blkCont">
<img src="/images/ExpIcon.png" alt="Expression" title="Expression"/></div>
<div class="clear"></div>
</div>
</tal:block>
</div>

</div>
<div id="downPagerId1" class="paginat"></div>
<div class="clear"></div>
</div>
<script type="text/javascript">
//<![CDATA[
	pagination1 = new Array();
	pagination1['currentPage'] = "<?=$ctx->getActivities['currentPage']?>";
	pagination1['resultsPerPage'] = "<?=$ctx->getActivities['resultPerPage']?>";
	pagination1['pages'] = "<?= $ctx->getActivities['pages']?>";  
	pagination1['pager'] = '<?=$ctx->getActivities["pager"]?>';
	pagination1['resultsCount'] = "${getActivities/resultsCount}" ;
	
	var Params='${params}';
	//alert(pagination['resultsCount']+'  '+Params);
	var requestUrlDup = "/expressions/myactivity/pagination/0/";
	 setPagination1(pagination1['resultsCount'],'topPagerId1','downPagerId1','','');
function change_activity(type_val)
{
	//alert("close");return false;
	$.ajax({
			   
			    type: "POST",
				dataType: "json",
			    data: "type_val="+type_val,
			    url: "/expressions/myactivity/myactivity/",
			    success: function(data){
					//alert("success");
					$('#listAlbums').html(data.output);	
					if(type_val==1)
					{
						$('#list_active').html('<li><a href="javascript:void(0);" onclick="change_activity(1);" class="active">My Activity</a> </li><li><a href="javascript:void(0);" onclick="change_activity(2);" class="">Network Activity </a> </li><li><a href="javascript:void(0);" onclick="change_activity(3);" class="">Notifications</a> </li>');
					}
					else if(type_val==2)
					{
						$('#list_active').html('<li><a href="javascript:void(0);" onclick="change_activity(1);" class="">My Activity</a> </li><li><a href="javascript:void(0);" onclick="change_activity(2);" class="active">Network Activity </a> </li><li><a href="javascript:void(0);" onclick="change_activity(3);" class="">Notifications</a> </li>');
				
					}
					else
					{
						$('#list_active').html('<li><a href="javascript:void(0);" onclick="change_activity(1);" class="">My Activity</a> </li><li><a href="javascript:void(0);" onclick="change_activity(2);" class="">Network Activity </a> </li><li><a href="javascript:void(0);" onclick="change_activity(3);" class="active">Notifications</a> </li>');

					}
					pagination1['currentPage'] = "<?=$ctx->getActivities['currentPage']?>";
					pagination1['resultsPerPage'] = "<?=$ctx->getActivities['resultPerPage']?>";
					pagination1['pages'] = "<?= $ctx->getActivities['pages']?>";  
					pagination1['pager'] = '<?=$ctx->getActivities["pager"]?>';
					pagination1['resultsCount'] = "${getActivities/resultsCount}" ;
					
					var Params='${params}';
					//alert(pagination['resultsCount']+'  '+Params);
					var requestUrlDup = "/expressions/myactivity/pagination/0/";
					 setPagination1(pagination1['resultsCount'],'topPagerId1','downPagerId1','','');
				}
			});
}
	
//]]>
</script>
